<script setup lang="ts">
import { ref } from "vue";

const flag = ref(false);

// 消息提示框不是通过显示与隐藏展示
// Message.success()   动态创建消息提示
</script>

<template>
  <button @click="flag = true">显示</button>
  <button @click="flag = false">显示</button>
  <SealMessage type="error" v-if="flag">登录失败</SealMessage>

  <!--  -->
</template>

<style lang="less" scoped></style>
